<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Get the header name for an index</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.exif-read-data.html">exif_read_data</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.exif-thumbnail.html">exif_thumbnail</a></div>
 <div class="up"><a href="ref.exif.html">Exif 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.exif-tagname" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">exif_tagname</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5)</p><p class="refpurpose"><span class="refname">exif_tagname</span> &mdash; <span class="dc-title">Get the header name for an index</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.exif-tagname-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>exif_tagname</strong></span>     
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$index</code></span>
   )</div>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.exif-tagname-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">index</code></em></dt>

     <dd>

      <p class="para">
       The Tag ID for which a Tag Name will be looked up.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.exif-tagname-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the header name, or <strong><code>FALSE</code></strong> if <em><code class="parameter">index</code></em> is
   not a defined EXIF tag id.
  </p>
 </div>

 <div class="refsect1 examples" id="refsect1-function.exif-tagname-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-3099">
    <p><strong>Example #1 <span class="function"><strong>exif_tagname()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #DD0000">"256:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">exif_tagname</span><span style="color: #007700">(</span><span style="color: #0000BB">256</span><span style="color: #007700">).</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br />echo&nbsp;</span><span style="color: #DD0000">"257:&nbsp;"</span><span style="color: #007700">.</span><span style="color: #0000BB">exif_tagname</span><span style="color: #007700">(</span><span style="color: #0000BB">257</span><span style="color: #007700">).</span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
256: ImageWidth
257: ImageLength
</pre></div>
    </div>
   </div>
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-function.exif-tagname-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.exif-imagetype.html" class="function" rel="rdfs-seeAlso">exif_imagetype()</a> - 判断一个图像的类型</span></li>
    <li class="member"><a href="http://exif.org/Exif2-2.PDF" class="link external">&raquo;&nbsp;EXIF Specification</a></li>
    <li class="member"><a href="http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/EXIF.html" class="link external">&raquo;&nbsp;EXIF Tags</a></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.exif-read-data.html">exif_read_data</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.exif-thumbnail.html">exif_thumbnail</a></div>
 <div class="up"><a href="ref.exif.html">Exif 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
